package com.ruoyi.web.controller.mall.orderExcelRecode.service.impl;

import com.ruoyi.web.controller.mall.orderExcelRecode.domain.OrderExcelRecode;
import com.ruoyi.web.controller.mall.orderExcelRecode.mapper.OrderExcelRecodeMapper;
import com.ruoyi.web.controller.mall.orderExcelRecode.service.IOrderExcelRecodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单导出记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class OrderExcelRecodeServiceImpl implements IOrderExcelRecodeService 
{
    @Autowired
    private OrderExcelRecodeMapper orderExcelRecodeMapper;

    /**
     * 查询订单导出记录
     * 
     * @param id 订单导出记录ID
     * @return 订单导出记录
     */
    @Override
    public OrderExcelRecode selectOrderExcelRecodeById(String id)
    {
        return orderExcelRecodeMapper.selectOrderExcelRecodeById(id);
    }

    /**
     * 查询订单导出记录列表
     * 
     * @param orderExcelRecode 订单导出记录
     * @return 订单导出记录
     */
    @Override
    public List<OrderExcelRecode> selectOrderExcelRecodeList(OrderExcelRecode orderExcelRecode)
    {
        return orderExcelRecodeMapper.selectOrderExcelRecodeList(orderExcelRecode);
    }

    /**
     * 新增订单导出记录
     * 
     * @param orderExcelRecode 订单导出记录
     * @return 结果
     */
    @Override
    public int insertOrderExcelRecode(OrderExcelRecode orderExcelRecode)
    {
        return orderExcelRecodeMapper.insertOrderExcelRecode(orderExcelRecode);
    }

    /**
     * 修改订单导出记录
     * 
     * @param orderExcelRecode 订单导出记录
     * @return 结果
     */
    @Override
    public int updateOrderExcelRecode(OrderExcelRecode orderExcelRecode)
    {
        return orderExcelRecodeMapper.updateOrderExcelRecode(orderExcelRecode);
    }

    /**
     * 删除订单导出记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteOrderExcelRecodeByIds(String[] ids)
    {
        return orderExcelRecodeMapper.deleteOrderExcelRecodeByIds(ids);
    }

    /**
     * 删除订单导出记录信息
     * 
     * @param id 订单导出记录ID
     * @return 结果
     */
    @Override
    public int deleteOrderExcelRecodeById(String id)
    {
        return orderExcelRecodeMapper.deleteOrderExcelRecodeById(id);
    }
}
